/*
**  File: AquaFiles.h
*/
DistdataDesc *NewDistdataListElem( DistdataList *list, DistdataDesc *rel_desc );
void DestroyDistdataListElem( DistdataList *list, void *data, Boolean destroy_related );
void PrintDistdataList( DistdataList *list );
void ProcessDistinfFile( DistdataList *inf_list, int *dist_count, int *struc_count,
                Qtyp *qtype_inf, Filnam set_filnam, Filnam drst_filnam, Card ident,
                const Boolean save_hdr, DistinfTyp *ftype_inf, Filnam dinf_filnam );
void ProcessDistvalFile( DistdataList *val_list, int *dist_count, int *struc_count,
                Model **models, Qtyp *qtype_val, Filnam set_filnam,
		Filnam dinf_filnam,  Filnam drst_filnam, Card ident,
		const Boolean save_hdr, DistinfTyp *ftype_val, Filnam dval_filnam );
Distrst *ProcessDistrstFile( int *dist_count, Qtyp *qtype_rst, Filnam set_filnam,
                   Filnam dinf_filnam, Card ident,
		   const Boolean save_hdr, Filnam drst_filnam );
void CreateAquaDistFiles( char *DR_type, DistinfTyp ftyp, char *msg,
                          Boolean do_rst, Boolean do_val );
void WriteDistinfFile( Distinf *dist_inf, const int count, const int struc_count,
                       Card ident, Filnam set_filnam );
void WriteDistinflFile( Distinfl *dist_inf, const int count, const int a_count,
                        Card ident, Filnam set_filnam );
void WriteDistrstFile( Distrst *dist_rst, const int count, Card ident, Filnam set_filnam );
void WriteDistvalFile( Distval *dist_val, const int dist_count, Card ident, Filnam set_filnam,
                       Model *models, const int struc_count );
void WriteDistvallFile( Distvall *dist_vall, const int dist_count, const int tot_count,
                        Card ident, Filnam set_filnam,
                        Model *models, const int struc_count );
int ReadRestraintFile( FILE *fp, DRestraint *restrs, const int count,
                       Card ident, char *typ, const int shift );
void WriteRestraintFile( FILE *fp, DRestraint *restrs, int DR_count, int skip_count,
                         Card ident, char *DR_typ, char *format );
Atom *ReadAtomLIB( FILE *fp, int *at_count );
Psatom *ReadPseudoLIB( FILE *fp, int *pseudo_count );
